<template>
  <div class="body">
    <div class="header">
      <div>
        <img @click="returnGo" src="../../assets/homeimg/滑动左.png" />
        <span>联系我们</span>
      </div>
    </div>
    <div class="main">
        <p class="p1">使用过程如有问题请联系客服</p>
        <p class="p2">客服电话:<span class="phone">{{this.phone}}</span></p>
        
    </div>
  </div>
</template>

<script>
import mineApi from "@/api/mine";
export default {
  data() {
    return {
      phone: ""
    };
  },
  components: {},
  created() {
    this.getphone();
  },
  methods: {
    returnGo() {
      this.$router.go(-1);
    },
    getphone() {
      mineApi.phone().then(res => {
        console.log(res);
        this.phone = res.data;
      });
    }
  }
};
</script>

<style scoped lang="scss">
.body {
  color: #333333;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.header {
  // font-weight: bold;
  width: 100%;
  text-align: center;
  height: 2.75rem;
  line-height: 2.75rem;
  padding-top: 1.25rem;
  position: relative;
  border-bottom: 1px solid #dcdcdc;
  color: #333333;
  font-size: 1.25rem;
  img {
    width: 0.625rem;
    height: 1.125rem;
    position: absolute;
    left: 1rem;
    bottom: 0.75rem;
  }
}
.main{
    margin-top: 1.25rem;
    .p1{
        display: block;
        margin-left: 20px;
        font-size: 1rem;
        color: #333333;
    }
    .p2{
        font-size: 1rem;
        display: block;
        margin-left: 20px;
        margin-top: 1.25rem;
        font-weight: bold;
        color:#333333
    }
    .phone{
        text-align: center;
        color: red;
    }
}
</style>
